# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-pykwalify
_pkgname=pykwalify
pkgver=1.7.0
pkgrel=1
pkgdesc="Python YAML/JSON schema validation library"
url="https://github.com/Grokzen/pykwalify"
arch="noarch"
license="MIT"
depends="python3 py3-setuptools py3-docopt py3-ruamel.yaml py3-dateutil"
checkdepends="py3-pytest py3-testfixtures"
source="$_pkgname-$pkgver.tar.gz::https://github.com/Grokzen/pykwalify/archive/$pkgver.tar.gz
	fix-duplicate-key-error.patch
	fix-unexpected-keyword-arguments.patch"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir" --skip-build
}

sha512sums="484922ba921462aaf0607811e0f36c9cae6f67682d8d0c408066381d21a247fb156c17b8440da207d58e127a4a8adb85b18e63fe3b4142368bfd21fa644a7bc7  pykwalify-1.7.0.tar.gz
3c8b5e9e37b78da937193e49f7be5ab95878cc4319992b74efb845286666eccea792e15eb47d8c144d22ef3f646585e4516735dd52b50a2c4af5f90abe6bc9b5  fix-duplicate-key-error.patch
e6a72aef8343c6af40cdb9d9748c1bc3fb0d34fc20822cec498291ad7d942d63cf3a498e406e194770aaed6fd423f308c348d8723d4136baa05e7af5606f6e02  fix-unexpected-keyword-arguments.patch"
